package com.qys.livesMall.financial.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户每日理财收益
 * </p>
 *
 * @author
 * @since 2023-06-13
 */
@Getter
@Setter
@TableName("h2_financial_online_user")
@Schema(name = "FinancialOnlineUser", description = "用户每日理财收益")
public class FinancialOnlineUser implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    @TableId(value = "id")
    private Long id;

    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "投资Id")
    private Long financialOrderId;

    @Schema(description = "当日收益金额")
    private BigDecimal amount;

    @Schema(description = "收益日期")
    private LocalDate incomeDate;

    @Schema(description = "结算状态 0:未结算，1：已结算")
    private Integer settlementStatus;
}
